package com.newtribe.tk;


/**
 * <p> </p>
 * <p>Description: Innovatation method</p>
 * <p>Copyright: Copyright (c)  newtribe innovation 2005</p>
 * <p> this class  is responsible for  task storing and dispatching management .
 * sub class must extends this class and have a user defined store and dispatch task rule.
 *
 * </p>
 * @author fuwei
 * @version 1.0
 */

public abstract class TaskManager {
   TaskManager() {
  }


  /**
   * the manager initialize relate resources .
   * @throws java.lang.Exception
   */
  public void init () throws Exception {

  }

  /**
   * the task executer ask for Task to be implemented .
   * Implementation should be a synchronized method .
   *
   * @return
   */

  public abstract   Task requestTask() throws Exception ;


}